package com.burnerpat.fl2d.core.entity;

import com.burnerpat.fl2d.math.Vector2D;

public class Entity
{
	public static final long INVALID = -1;
	public static final long AUTO = -256;
	private long id = INVALID;
	
	protected Vector2D position = new Vector2D(0.0, 0.0);
	protected double alpha = 0.0;
	
	public Entity()
	{
		
	}
	
	public Entity(long pId, Vector2D pPosition, double pAlpha)
	{
		id = pId;
		alpha = pAlpha;
		
		if (pPosition != null)
		{
			position = pPosition;
		}
	}
	
	public Vector2D getPosition()
	{
		return position;
	}
	
	public void setPosition(Vector2D pPosition)
	{
		position = pPosition;
	}
	
	public double getAlpha()
	{
		return alpha;
	}
	
	public void setAlpha(double pAlpha)
	{
		alpha = pAlpha;
	}
	
	public long getID()
	{
		return id;
	}
	
	public void setID(long pId)
	{
		id = pId;
	}
}
